<template>
  <div>
    <!-- 头部 -->
<common-header v-if="route.name != 'vue3App'"/>
<!-- 这里可以使用组件 -->
<div class="main-container">
  <router-view></router-view>
</div>
<!-- 底部 -->
 <common-footer  v-if="route.name != 'vue3App'"/>
  </div>
</template>

<script setup>
import CommonHeader from '@/components/CommonHeader.vue';
import CommonFooter from '@/components/CommonFooter.vue';
import { useRoute } from 'vue-router'

const route = useRoute()
</script>



<style  scoped>
.main-container{
  min-height: 50vh;
}
</style>
